import { LayoutElement } from "./layout-element";

export class ClipboardService {

    isDisabled: boolean = false;
    wasInvoked: boolean = false;

    private _clipboardData: string;

    disable() {
        this.isDisabled = true;
        this.wasInvoked = false;
        this._clipboardData = null;
    }

    setData(data: string) {
        this._clipboardData = data;
        this.wasInvoked = true;
    };
    getData() {
        this.wasInvoked = true;
        return this._clipboardData;
    };
}